package unsafe

import (
	"reflect"
)

func PrintFieldOffset(entity any) {

	typ := reflect.TypeOf(entity)
	fieldNums := typ.NumField()
	for i := 0; i < fieldNums; i++ {
		field := typ.Field(i)
		println(field.Offset)
	}
}
